package com.youlu.campus.entity.commission;

import com.youlu.campus.base.base.EntityBase;
import lombok.Data;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author : [dengbo]
 * @className : DistributorAccountWithdraw
 * @description : [分销账户提现]
 * @createTime : [2023/2/3 15:11]
 */
@Data
@Document(collection = "distributor_account_withdraw")
@CompoundIndexes({
        @CompoundIndex(name = "accountId_1_createdTime_-1", def = "{'accountId':-1,'createdTime':-1}")
})
public class DistributorAccountWithdraw extends EntityBase {
    /**
     * appID
     */
    private String appId;
    /**
     * 账户id
     */
    private String accountId;
    /**
     * openid
     */
    @Indexed
    private String openId;
    /**
     * 提现手机号
     */
    @Indexed
    private String mobile;
    /**
     * 提现单号
     */
    private String orderNo;
    /**
     * 提现姓名
     */
    @Indexed
    private String name;
    /**
     * 提现金额
     */
    private Integer money;
    /**
     * 0提现成功 1提现失败 2 提现中
     */
    private Integer status;
    /**
     * 0 个人 1 渠道
     */
    private Integer type;
    /**
     * 渠道名称
     */
    private String channelName;
    /**
     * 商户名称
     */
    private String merchantName;
    /**
     * 商户Id
     */
    private String merchantId;
    /**
     * 提现结果
     */
    private Object result;
    /**
     * alipay 支付宝 wechat-pay微信
     */
    private String withdrawType;
    /**
     * 支付宝账号
     */
    private String alipayAccount;
    /**
     * 操作人
     */
    private String operator;
    /**
     * 渠道提现申请人
     */
    private String applayOp;
    /**
     * 公司名称
     */
    private String companyName;
    /**
     * 银行卡
     */
    private String bankCard;
    /**
     * 开户行
     */
    private String accountsBank;
}
